gtk4.git
10 years agowayland: Fix toplevel lookup before starting DnD
Carlos Garnacho [Thu, 19 Nov 2015 19:26:11 +0000 (20:26 +0100)]
wayland: Fix toplevel lookup before starting DnD

We use the high-level gdk_device_get_window_at_position() to figure
out the window, although this one actually tries to find out the
current window under the device coordinates, which might well fall
outside the window, so NULL is returned in those cases.

Fix this by using the lower level _gdk_device_window_at_position()
that will return the toplevel without further lookups, so is more
desirable here.

https://bugzilla.gnome.org/show_bug.cgi?id=758250

10 years agogtkdnd: Use gdk_drag_begin_for_device()
Carlos Garnacho [Thu, 19 Nov 2015 19:00:23 +0000 (20:00 +0100)]
gtkdnd: Use gdk_drag_begin_for_device()

We've got the pointer at hand there, just pass that instead of figuring
out from the client pointer.

10 years agowayland: Implement GdkDevice::window_at_position for touch
Carlos Garnacho [Thu, 19 Nov 2015 19:23:44 +0000 (20:23 +0100)]
wayland: Implement GdkDevice::window_at_position for touch

This goes through its own master pointer, so look up the pointer
emulating touch focus window and coordinates.

10 years agowayland: Disallow setting the cursor on the touch master pointer
Carlos Garnacho [Thu, 19 Nov 2015 19:06:07 +0000 (20:06 +0100)]
wayland: Disallow setting the cursor on the touch master pointer

That "pointer" is not backed by anything in the windowing system, ignore
cursor updates there.

10 years agowayland: Ensure we get the master pointer on GdkDeviceManager::get_client_pointer
Carlos Garnacho [Thu, 19 Nov 2015 19:04:46 +0000 (20:04 +0100)]
wayland: Ensure we get the master pointer on GdkDeviceManager::get_client_pointer

Now that we have multiple master pointers, this call may pick the wrong one.
Instead, pick the GdkWaylandDeviceData from the first device, and pick the
master pointer from there.

10 years agowayland: Separate touch pointer emulation into its own master pointer
Carlos Garnacho [Thu, 8 Oct 2015 14:41:35 +0000 (16:41 +0200)]
wayland: Separate touch pointer emulation into its own master pointer

The common GDK code accounts for "pointer emulating" touch sequences to be
synchronized with the pointer position by the windowing system.

However on Wayland pointer and touch are completely independent, the backend
attempts to implement pointer emulation, but doesn't account for the
possible crossing events happening when the user switches from pointer to
touch or the opposite.

In order to fix this, and to ensure we don't have to interact with the
master pointer (which backs the wl_pointer), separate the touch interface
to have its own master pointer, and ensure crossing events are emitted on
it, so the picture of an "emulated pointer" is complete above the backend.

Inspired in a former patch by Jonny Lamb <jonnylamb@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=750845

10 years agogtkheaderbar: update the window buttons on ::hierarchy-changed instead of ::realize
Christoph Reiter [Wed, 18 Nov 2015 20:21:57 +0000 (21:21 +0100)]
gtkheaderbar: update the window buttons on ::hierarchy-changed instead of ::realize

The window button setup depends on properties of the toplevel window.
Instead of updating the setup on realize, do it when the toplevel
changes.

This makes sure that when a GtkHeaderBar is added to a window
all the widgets are present and get_preferred_height() will return
the height the widget will have when finally shown. This allows
the logic in gtkwindow to select the right window size so that
the content size will match the requested default size.

https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agogtkwindow: apply CSD adjustments to the default size when used instead of when setting it
Christoph Reiter [Wed, 18 Nov 2015 18:17:01 +0000 (19:17 +0100)]
gtkwindow: apply CSD adjustments to the default size when used instead of when setting it

Before the resulting window size would differ if the default size was set
before adding a headerbar vs after. Now the saved state is again the actual
requested size and it is adjusted at the time we request a window size.

https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agowindow: maximize on double click only if allowed
Olivier Fourdan [Wed, 4 Nov 2015 10:24:36 +0000 (11:24 +0100)]
window: maximize on double click only if allowed

GtkHeaderBar will not show the maximize button if the window in not of
type normal or not resizeable.

Use the same restriction for double-click actions as well.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=757530

10 years agoFix return annotations for GtkWindow
Jonas Platte [Sun, 8 Nov 2015 16:17:00 +0000 (16:17 +0000)]
Fix return annotations for GtkWindow

Add nullable annotations for functions that may return NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=753520

10 years agoFix character entities
Phillip Wood [Mon, 16 Nov 2015 12:14:05 +0000 (12:14 +0000)]
Fix character entities

These are not supposed to be supported by gtk-doc¹

¹https://bugzilla.gnome.org/show_bug.cgi?id=758137

https://bugzilla.gnome.org/show_bug.cgi?id=758175

10 years agogtkstack: allow templates to override all properties
Carlos Soriano [Wed, 11 Nov 2015 12:51:02 +0000 (13:51 +0100)]
gtkstack: allow templates to override all properties

Currently GtkStack has some G_PARAM_CONSTRUCT properties. That means,
the properties are set with its default value after the initializacion
of the object.
When using GtkBuilder to build objects, GtkBuilder creates them and
after that sets the properties found on the xml definition.
However, this is not true for templates because the template is initialized
in the init() function of the actual object, and after that, the construct
properties will be set.

This is a problem when someone wants to use templates with GtkStack and
set those properties, since they will be set on the tempalt initialization
and set again to its default values afterwards.

To fix this, make those properties not G_PARAM_CONSTRUCT.

https://bugzilla.gnome.org/show_bug.cgi?id=758086

10 years agoUpdates
Matthias Clasen [Thu, 19 Nov 2015 19:22:27 +0000 (14:22 -0500)]
Updates

10 years agowayland: Avoid a crash
Matthias Clasen [Thu, 19 Nov 2015 19:39:42 +0000 (14:39 -0500)]
wayland: Avoid a crash

We can end up in situations where NULL gets passed to
get_transient_parent(). Embrace it instead of avoiding it.

https://bugzilla.gnome.org/show_bug.cgi?id=758327

10 years agoAdd more CSS node docs
Matthias Clasen [Thu, 19 Nov 2015 19:01:41 +0000 (14:01 -0500)]
Add more CSS node docs

10 years agoTrivial: Some doc rewording
Matthias Clasen [Thu, 19 Nov 2015 18:40:57 +0000 (13:40 -0500)]
Trivial: Some doc rewording

10 years agoAdd some CSS node docs
Matthias Clasen [Thu, 19 Nov 2015 17:55:30 +0000 (12:55 -0500)]
Add some CSS node docs

Write up some of the insights from doing the CSS node transition,
so the knowledge is not lost.

10 years agoDo not use the GPL v3 blurb for LGPL v2.1 files
Emmanuele Bassi [Thu, 19 Nov 2015 12:44:17 +0000 (12:44 +0000)]
Do not use the GPL v3 blurb for LGPL v2.1 files

GTK+ is licensed under the terms of the GNU LGPL v2.1+.

10 years agoDo not use the LGPL v3 blurb for LGPL v2.1 files
Emmanuele Bassi [Thu, 19 Nov 2015 12:43:24 +0000 (12:43 +0000)]
Do not use the LGPL v3 blurb for LGPL v2.1 files

GTK+ is released under the terms of the GNU LGPL v2.1+.

10 years agoFix the license version in GtkTrashMonitor
Emmanuele Bassi [Thu, 19 Nov 2015 12:41:22 +0000 (12:41 +0000)]
Fix the license version in GtkTrashMonitor

There is no GNU Lesser General Public License version 2; it's either GNU
Library General Public License version 2, or GNU Lesser General Public
License version 2.1.

10 years agoFix license version for GtkFileChooserWidget private header
Emmanuele Bassi [Thu, 19 Nov 2015 12:33:07 +0000 (12:33 +0000)]
Fix license version for GtkFileChooserWidget private header

Since it's using Lesser GPL, use version 2.1; there is no Lesser GPL v2,
as it was called 'Library GPL' prior to v2.1.

10 years agoFix the licensing blurb of GtkBookmarksManager
Emmanuele Bassi [Thu, 19 Nov 2015 12:11:05 +0000 (12:11 +0000)]
Fix the licensing blurb of GtkBookmarksManager

Copy-pasta from GPL instead of LGPL.

Also, there is no GNU Lesser General Public License version 2; either
it's the GNU Library General Public License version 2, or it's the GNU
Lesser General Public License version 2.1.

10 years agoFix the licensing blurb in GtkPlacesSidebar
Emmanuele Bassi [Thu, 19 Nov 2015 12:06:54 +0000 (12:06 +0000)]
Fix the licensing blurb in GtkPlacesSidebar

The code is released under the terms of the LGPL v2.1+, as is the rest
of the GTK+ code.

10 years agoFix license header
Matthias Clasen [Thu, 19 Nov 2015 12:22:01 +0000 (07:22 -0500)]
Fix license header

I didn't meant to make this different from any other file
in GTK+ when I added it.

10 years agobox: Use an element name
Matthias Clasen [Thu, 19 Nov 2015 12:07:26 +0000 (07:07 -0500)]
box: Use an element name

10 years agotoolitemgroup: Fix initial state
Matthias Clasen [Thu, 19 Nov 2015 11:04:26 +0000 (06:04 -0500)]
toolitemgroup: Fix initial state

GtkToolItemGroup starts out as non-collapsed, make the CSS node
state reflect that.

10 years agoDocument GDK_TOUCHPAD_GESTURE_MASK
Matthias Clasen [Wed, 18 Nov 2015 15:21:15 +0000 (10:21 -0500)]
Document GDK_TOUCHPAD_GESTURE_MASK

10 years agoentry: ensure valid GdkWindow before set_invisible_cursor()
Christian Hergert [Wed, 18 Nov 2015 22:41:29 +0000 (14:41 -0800)]
entry: ensure valid GdkWindow before set_invisible_cursor()

If the window has not yet been created, then we can't set the invisible
cursor yet. This can happen in situations where the widget is in a
revealer with type-to-search functionality.

10 years agoHighContrast: remove deprecated progressbar style properties
Cosimo Cecchi [Wed, 18 Nov 2015 17:16:51 +0000 (09:16 -0800)]
HighContrast: remove deprecated progressbar style properties

These are ignored and trigger a runtime warning.

10 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 18 Nov 2015 12:22:59 +0000 (12:22 +0000)]
Updated Spanish translation

10 years agogtkwindow: apply csd offset to set/get_default_size
Olivier Fourdan [Thu, 12 Nov 2015 15:56:20 +0000 (16:56 +0100)]
gtkwindow: apply csd offset to set/get_default_size

An application may use gtk_window_get_size() to retrieve the current
window size and later reuse that size with
gtk_window_set_default_size().

gtk_window_set_default_size() and gtk_window_get_default_size() should
also take client side decorations offset into account.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agopopover: Avoid a crash when no relative-to widget is set
Matthias Clasen [Wed, 18 Nov 2015 03:48:35 +0000 (22:48 -0500)]
popover: Avoid a crash when no relative-to widget is set

This was showing up in glade, which creates freestanding
popovers.

10 years agoHighContrast: remove deprecated style properties
Matthias Clasen [Wed, 18 Nov 2015 02:47:02 +0000 (21:47 -0500)]
HighContrast: remove deprecated style properties

10 years agoexpander: Use the right state when querying style properties
Matthias Clasen [Wed, 18 Nov 2015 01:48:50 +0000 (20:48 -0500)]
expander: Use the right state when querying style properties

Failure to do so causes warnings.

10 years agogtk-demo: Fix the CSS examples
Matthias Clasen [Wed, 18 Nov 2015 00:55:58 +0000 (19:55 -0500)]
gtk-demo: Fix the CSS examples

The CSS needs small adjustments after all the CSS node changes.

10 years agogtk-demo: Fix the assistant example
Matthias Clasen [Wed, 18 Nov 2015 00:48:02 +0000 (19:48 -0500)]
gtk-demo: Fix the assistant example

GtkEntry respects valign now, so we need to set it to something
other than fill.

10 years agoAdwaita: Drop deprecated style properties
Matthias Clasen [Wed, 18 Nov 2015 00:41:08 +0000 (19:41 -0500)]
Adwaita: Drop deprecated style properties

10 years agowayland: Move additional pointer buttons after the old 4-7 scrolling ones
Carlos Garnacho [Mon, 16 Nov 2015 11:51:42 +0000 (12:51 +0100)]
wayland: Move additional pointer buttons after the old 4-7 scrolling ones

We were using that range for the extra buttons after left/right/middle,
while this is harmless for clients not handling extra buttons (we
used to translate those button events into scroll events in x11 anyway)
this will be unexpected for clients that do handle additional mouse
buttons themselves (eg. back/forward buttons present in some mice).

In order to remain compatible with X11, those need to be assigned from
button 8 onwards.

Also, include input.h, and stop using magic numbers here.

https://bugzilla.gnome.org/show_bug.cgi?id=758072

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Nov 2015 17:56:17 +0000 (18:56 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Nov 2015 17:56:07 +0000 (18:56 +0100)]
Updated Spanish translation

10 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Tue, 17 Nov 2015 17:47:41 +0000 (17:47 +0000)]
Updated Scottish Gaelic translation

10 years agox11: Add "pointer" to the is-not-a-touchscreen device name checks
Carlos Garnacho [Tue, 17 Nov 2015 14:36:08 +0000 (15:36 +0100)]
x11: Add "pointer" to the is-not-a-touchscreen device name checks

Commit 1266d15c4 also broke Xwayland, as it does the same trick
than VMWare pointers. Let's extend the heuristic to check for "pointer"
in the device name, what can possibly go wrong...

https://bugzilla.gnome.org/show_bug.cgi?id=757358

10 years agostackswitcher: add GtkStackSwitcher:icon-size property
Christian Hergert [Tue, 17 Nov 2015 05:38:22 +0000 (21:38 -0800)]
stackswitcher: add GtkStackSwitcher:icon-size property

Set the GtkStackSwitcher:icon-size property to change the size of icons
used in the linked GtkRadioButton children.

https://bugzilla.gnome.org/show_bug.cgi?id=758208

10 years agox11: Try harder to find a core pointer
Matthias Clasen [Mon, 16 Nov 2015 23:31:37 +0000 (18:31 -0500)]
x11: Try harder to find a core pointer

We currently just look for a master device with input source MOUSE.
After recent changes to the way input devices are classified, xwayland
on my system comes up with a virtual core pointer that has input
source TOUCHSCREEN. This was causing assertion failures. Be a little
more careful and accept a touchscreen as core pointer, if there is
no mouse.

10 years agoAdwaita: Remove deprecated style properties
Matthias Clasen [Mon, 16 Nov 2015 20:14:41 +0000 (15:14 -0500)]
Adwaita: Remove deprecated style properties

These are now triggering warnings, so clean them up.

10 years agoAnnotate deprecated style properties
Matthias Clasen [Mon, 16 Nov 2015 20:13:33 +0000 (15:13 -0500)]
Annotate deprecated style properties

Use G_PARAM_DEPRECATED with deprecated style properties.
This will make it easier to identify and remove such stale
properties from css, since it will now trigger warnings.

10 years agocss provider: Issue deprecation warnings for style properties
Matthias Clasen [Mon, 16 Nov 2015 19:37:23 +0000 (14:37 -0500)]
css provider: Issue deprecation warnings for style properties

This makes G_PARAM_DEPRECATED useful for style properties.

10 years agocssprovider: Only push a new scanner when none exists
Benjamin Otte [Mon, 16 Nov 2015 18:34:24 +0000 (19:34 +0100)]
cssprovider: Only push a new scanner when none exists

For @import, we want to emit the error as part of the @import statement,
not as part of the new file.

10 years agocssprovider: Have a section on import error
Benjamin Otte [Mon, 16 Nov 2015 16:36:50 +0000 (17:36 +0100)]
cssprovider: Have a section on import error

When loading a nonexisting CSS file using
gtk_css_provider_load_from_file() or gtk_css_provider_load_from_path()
we would emit the error using a NULL scanner. Don't do that, because
we'll have a NULL section in that case and error handlers don't like
that.

Testcase attached.

https://bugzilla.redhat.com/show_bug.cgi?id=1277959

10 years agogtkcontainer: clarify requirements for implementations
Carlos Soriano [Wed, 11 Nov 2015 10:37:28 +0000 (11:37 +0100)]
gtkcontainer: clarify requirements for implementations

Spent quite a few time investigating why the widgets were
not shown in my GtkContainer implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=758087

10 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Mon, 16 Nov 2015 15:22:01 +0000 (15:22 +0000)]
Updated Scottish Gaelic translation

10 years agospinbutton: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:18:32 +0000 (06:18 -0500)]
spinbutton: Document some style properties as deprecated

No code change.

10 years agorange: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:17:36 +0000 (06:17 -0500)]
range: Document some style properties as deprecated

Remove dead code dealing with the arrow-displacement-x/y style
properties, and document them as deprecated.

10 years agoprogressbar: Ignore x/yspacing style properties
Matthias Clasen [Mon, 16 Nov 2015 11:16:31 +0000 (06:16 -0500)]
progressbar: Ignore x/yspacing style properties

These are not really useful, so ignore and deprecate them.

10 years agomenuitem: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:15:48 +0000 (06:15 -0500)]
menuitem: Document some style properties as deprecated

No code change.

10 years agomenubar: Ignore the shadow-type style property
Matthias Clasen [Mon, 16 Nov 2015 11:14:54 +0000 (06:14 -0500)]
menubar: Ignore the shadow-type style property

The border can be controlled with regular CSS, so deprecate
and ignore this style property.

10 years agoicon view: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:13:31 +0000 (06:13 -0500)]
icon view: Document some style properties as deprecated

No code change.

10 years agoentry: Ignore the icon-prelight style property
Matthias Clasen [Mon, 16 Nov 2015 11:12:24 +0000 (06:12 -0500)]
entry: Ignore the icon-prelight style property

The icon prelight effect can be controlled with regular CSS,
so deprecate and ignore this style property.

10 years agobutton: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:11:42 +0000 (06:11 -0500)]
button: Document some style properties as deprecated

No code change.

10 years agobutton box: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:11:01 +0000 (06:11 -0500)]
button box: Document some style properties as deprecated

No code change.

10 years agoassistant: Document style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:10:16 +0000 (06:10 -0500)]
assistant: Document style properties as deprecated

No code change.

10 years agoAvoid an unused variable warning
Matthias Clasen [Mon, 16 Nov 2015 11:14:00 +0000 (06:14 -0500)]
Avoid an unused variable warning

This was introduced with the recent win32 build fix.

10 years agostack switcher: fix typos in documentation comment
Cosimo Cecchi [Sun, 15 Nov 2015 22:11:48 +0000 (14:11 -0800)]
stack switcher: fix typos in documentation comment

10 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sun, 15 Nov 2015 18:43:28 +0000 (19:43 +0100)]
Updated Norwegian bokmål translation.

10 years agolabel: Use css nodes for links
Matthias Clasen [Sun, 15 Nov 2015 06:00:20 +0000 (01:00 -0500)]
label: Use css nodes for links

Use a subnode with name link for links in labels. These subnodes
carry the :link or :visited state.

10 years agox11: Do not misdetect mice with abs axes as touchscreens
Carlos Garnacho [Fri, 13 Nov 2015 16:14:34 +0000 (17:14 +0100)]
x11: Do not misdetect mice with abs axes as touchscreens

VMWare seems to create mouse devices with abs axes which confuses
our detection of single-touch touchscreens. Those have though a
name we can match on ("VirtualPS/2 VMware VMMouse"), it should
be pretty safe to assume that no real touchscreens have "mouse"
in their name...

https://bugzilla.gnome.org/show_bug.cgi?id=757358

10 years agowayland: Translate virtual modifiers too
Rui Matos [Tue, 3 Nov 2015 17:39:27 +0000 (18:39 +0100)]
wayland: Translate virtual modifiers too

Wayland allows us to receive virtual modifiers too so we can just use
them directly if the compositor does send them.

https://bugzilla.gnome.org/show_bug.cgi?id=748904

10 years agospinbutton: update node state more often
Matthias Clasen [Sun, 15 Nov 2015 04:18:17 +0000 (23:18 -0500)]
spinbutton: update node state more often

We need to update the entry_node state, and we should
update the node state initially.

10 years agoshortcuts: Support direction-specific shortcuts
Matthias Clasen [Sun, 15 Nov 2015 03:34:19 +0000 (22:34 -0500)]
shortcuts: Support direction-specific shortcuts

The prime example for direction-dependent shortcuts is using
<Alt>Left or <Alt>Right to go back. Support this by adding a
direction property to GtkShortcutsShortcut, and filtering by
the current text direction.

https://bugzilla.gnome.org/show_bug.cgi?id=757888

10 years agohelp overlay: Allow key sequences
Matthias Clasen [Sun, 15 Nov 2015 02:34:43 +0000 (21:34 -0500)]
help overlay: Allow key sequences

Extend the syntax to allow sequences of keys or key combinations,
e.g. t+t or <ctl>c+<ctl>x.

https://bugzilla.gnome.org/show_bug.cgi?id=758051

10 years agoAdd one more selector to CSS parsing tests
Matthias Clasen [Sun, 15 Nov 2015 00:04:42 +0000 (19:04 -0500)]
Add one more selector to CSS parsing tests

Add an E + F selector to the selector parsing tests.
It is a CSS selector that we support.

10 years agoAlways pass the right state in style context getters
Matthias Clasen [Sun, 15 Nov 2015 00:03:57 +0000 (19:03 -0500)]
Always pass the right state in style context getters

Otherwise, we are causing warnings that break make check.

10 years agotestsuite: Skip GtkFileChooserNative for notification tests
Matthias Clasen [Sun, 15 Nov 2015 00:03:10 +0000 (19:03 -0500)]
testsuite: Skip GtkFileChooserNative for notification tests

Like all the other GtkFileChooser implementations, this one
emits some unneeded notifications.

10 years agoHighContrast: Fix selection styling in icon views
Matthias Clasen [Sat, 14 Nov 2015 23:35:03 +0000 (18:35 -0500)]
HighContrast: Fix selection styling in icon views

This makes selected items in icon view show up again.

10 years agoHighContrast: Fix selection styling in treeviews
Matthias Clasen [Sat, 14 Nov 2015 23:29:27 +0000 (18:29 -0500)]
HighContrast: Fix selection styling in treeviews

This makes selected rows in treeviews show up again.

10 years agoHighContrast: Fix selection styling in some places
Matthias Clasen [Sat, 14 Nov 2015 23:25:59 +0000 (18:25 -0500)]
HighContrast: Fix selection styling in some places

Make selected flow box children and list box rows show up again.

10 years agoAdwaita: Misc cleanups
Matthias Clasen [Sat, 14 Nov 2015 23:25:24 +0000 (18:25 -0500)]
Adwaita: Misc cleanups

Various cleanups and simplifications.

10 years agoHighContrast: Fix shadow size
Matthias Clasen [Sat, 14 Nov 2015 23:05:06 +0000 (18:05 -0500)]
HighContrast: Fix shadow size

Ensure that the shadow extents don't change as we go to backdrop,
to prevent windows from jumping.

10 years agoAdwaita: Fix selection styling in icon views
Matthias Clasen [Sat, 14 Nov 2015 22:36:35 +0000 (17:36 -0500)]
Adwaita: Fix selection styling in icon views

This was also broken by recent selection styling changes.

10 years agoAdwaita: Fix selection styling in flow boxes
Matthias Clasen [Sat, 14 Nov 2015 22:33:00 +0000 (17:33 -0500)]
Adwaita: Fix selection styling in flow boxes

This was broken by recent selection styling changes.

10 years agoGtkApplicationWindow: the help_overlay is nullable
Timm Bäder [Sat, 14 Nov 2015 21:56:01 +0000 (22:56 +0100)]
GtkApplicationWindow: the help_overlay is nullable

10 years agoGtkApplicationWindow: Fix typos
Timm Bäder [Sat, 14 Nov 2015 21:19:58 +0000 (22:19 +0100)]
GtkApplicationWindow: Fix typos

10 years agoAdwaita: Fix window shadow size
Matthias Clasen [Sat, 14 Nov 2015 17:55:34 +0000 (12:55 -0500)]
Adwaita: Fix window shadow size

Ensure that the shadow extents don't change as we go to backdrop,
to prevent windows from jumping.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:30:47 +0000 (10:30 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:30:31 +0000 (10:30 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:30:16 +0000 (10:30 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:29:58 +0000 (10:29 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:29:39 +0000 (10:29 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:29:25 +0000 (10:29 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:28:54 +0000 (10:28 -0500)]
Cosmetic: Avoid explicit state variables

Fold it into its single user.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:28:25 +0000 (10:28 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explicit state variables
Matthias Clasen [Sat, 14 Nov 2015 15:01:11 +0000 (10:01 -0500)]
Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid explict state variables
Matthias Clasen [Sat, 14 Nov 2015 14:56:12 +0000 (09:56 -0500)]
Cosmetic: Avoid explict state variables

Using the state of the context makes this more obviously correct.

10 years agoCosmetic: Avoid an explicit state variable
Matthias Clasen [Sat, 14 Nov 2015 14:51:37 +0000 (09:51 -0500)]
Cosmetic: Avoid an explicit state variable

Using the state of the context makes it more obviously correct.

10 years agolistbox: Cosmetic cleanup
Matthias Clasen [Sat, 14 Nov 2015 14:49:49 +0000 (09:49 -0500)]
listbox: Cosmetic cleanup

We don't cast these arguments anywhere else, so lets not do here
either.

10 years agowindow: Don't invalidate cssnode during get_preferred_width()
Benjamin Otte [Sat, 14 Nov 2015 17:28:34 +0000 (18:28 +0100)]
window: Don't invalidate cssnode during get_preferred_width()

Getting the shadow width must not call gtk_style_context_set_state()
because that will invalidate the node and cause a style-updated emission
which can cause gtk_widget_queue_resize() calls.

And calling queue_resize() from get_preferred_size() essentially means
the size is permanently invalid because you invalidate it while
querying it.

This causes flickering of windows when going from/to backdrop state. To
avoid this we either need to fix the theme to not have different shadow
sizes in those cases or we need to ensure the window doesn't flicker in
the first place.

10 years agoUs ... instead of … for zh_CN
YunQiang Su [Sat, 14 Nov 2015 13:59:24 +0000 (21:59 +0800)]
Us ... instead of …  for zh_CN

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 14 Nov 2015 07:50:47 +0000 (07:50 +0000)]
Updated Portuguese translation

10 years agoGtkShortcutsShortcut: Add missing word
Timm Bäder [Fri, 13 Nov 2015 11:37:59 +0000 (12:37 +0100)]
GtkShortcutsShortcut: Add missing word

10 years agoGtkGrid: Remove invalid return annotation
Timm Bäder [Fri, 13 Nov 2015 11:36:03 +0000 (12:36 +0100)]
GtkGrid: Remove invalid return annotation